from flask_socketio import SocketIO
from flask import Flask

# 创建独立socketio实例
socketio = SocketIO(cors_allowed_origins="*", async_mode='threading')